<?
if ( !defined ( 'L_ADMOD' ) ){echo "<meta http-equiv='refresh' content='0; url=/index.php'>";exit;}
include("./inc/bloced.php");

include("admin/$op/menu.php");

$query=mysql_query("SELECT * FROM ".$wcpref.$op."_product");
print '<br><table border="0" cellpadding="3" cellspacing="1" align="center" width="40%">';
$d=0;
while($result=mysql_fetch_array($query))
{
	$d++;$iclass = ($d % 2) ? "even" : "odd";
	extract($result);
	print '<tr class="'.$iclass.'">
		<td width="30">'.$mod_id_prod.'</td>
		<td colspan="2"><a href="admin.php?op='.$op.'&flag=viewprod&lid='.$mod_id_prod.'">'.$mod_product.'</a></td>
		<td width="50" align="center">
			<a href="?op='.$op.'&flag=newproduct&item=editfrm&lid='.$mod_id_prod.'" title="'._EDIT_.'"><img src="./images/buttons/edit.gif" border="0"></a>';
			Print"&nbsp;";
			print "<a href='?op=".$op."&flag=goto&action=delprod&lid=".$mod_id_prod."' onClick=\"return confirm('"._DELETE_." &quot;".$mod_product."&quot;?');\"><img src=\"images/buttons/del.gif\" border=\"0\"></a>";
		print'</td>
	</tr>';
}
print'</table>';
?>